package com.ddyx.rest;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.util.RequestForm;
import com.ddyx.service.IStoreService;
import com.ddyx.util.ResponseForm;

/**
 * @ClassName:  StoreController   
 * @Description:小店管理  
 * @author: JiangShuai 
 * @date:   2017年12月26日 上午11:46:15     
 * @Copyright: 2017 dingdian.parllay.cn Inc. All rights reserved. 
 * 注意：本内容仅限于叮当一下(北京)信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Controller
@RequestMapping("/store")
public class StoreController {
	
	@Resource
	IStoreService storeService;
	
//	/**
//	 * @Title: addStore   
//	 * @Description: 添加小店信息  
//	 * @author: JiangShuai
//	 * @param: @param param
//	 * @param: @return      
//	 * @return: ResponseForm
//	 */
//	@ResponseBody
//	@RequestMapping(value="addStore",method=RequestMethod.POST)
//	public ResponseForm addStore(@RequestBody RequestForm param) {
//		return storeService.addStore(param);
//		return service.addStore(param);
//	}
	
//	/**
//	 * @Title: updateStore   
//	 * @Description: 修改小店信息 
//	 * @author: JiangShuai
//	 * @param: @param param
//	 * @param: @return      
//	 * @return: ResponseForm
//	 */
//	@ResponseBody
//	@RequestMapping(value="updateStore",method=RequestMethod.POST)
//	public ResponseForm updateStore(@RequestBody RequestForm param) {
//		return storeService.updateStore(param);
//		return service.updateStore(param);
//	}
	
	/**
	 * @Title: getStoreById   
	 * @Description: 获取小店详情 (弃用)
	 * @author: JiangShuai
	 * @param: @param param
	 * @param: @return      
	 * @return: ResponseForm
	 */
	@ResponseBody
	@RequestMapping(value="getStoreById",method=RequestMethod.POST)
	public ResponseForm getStoreById(@RequestBody RequestForm param) {
		return storeService.getStoreById(param);
	}
	
	
}
